package com.kun.exception;

/**
 * @className: BusinessException
 * @Description: ...
 * @author: kunkun
 * @date: 2025/7/10 16:02
 */
public class BusinessException extends RuntimeException{

    BusinessExceptionEnum e;

    public BusinessException(BusinessExceptionEnum e) {
        this.e = e;
    }

    public BusinessExceptionEnum getE() {
        return e;
    }

    public void setE(BusinessExceptionEnum e) {
        this.e = e;
    }

    /**
     * @Author kunkun
     * @Description 避免栈循环，提高性能
     * @Date 16:03 2025/7/10
     **/
    @Override
    public Throwable fillInStackTrace() {
        return this;
    }
}
